Optimal. Leaf size=139 \[ \frac {x}{a^3}-\frac {\left (3 a^2+12 a b+8 b^2\right ) \tanh ^{-1}\left (\frac {\sqrt {b} \tanh (c+d x)}{\sqrt {a+b}}\right )}{8 a^3 \sqrt {b} (a+b)^{3/2} d}-\frac {\tanh (c+d x)}{4 a d \left (a+b-b \tanh ^2(c+d x)\right )^2}-\frac {(3 a+4 b) \tanh (c+d x)}{8 a^2 (a+b) d \left (a+b-b \tanh ^2(c+d x)\right )} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.18, antiderivative size = 139, normalized size of antiderivative = 1.00, number of steps
used = 7, number of rules used = 7, integrand size = 23, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.304, Rules used = {4226, 2000,
482, 541, 536, 212, 214} \begin {gather*} \frac {x}{a^3}-\frac {(3 a+4 b) \tanh (c+d x)}{8 a^2 d (a+b) \left (a-b \tanh ^2(c+d x)+b\right )}-\frac {\left (3 a^2+12 a b+8 b^2\right ) \tanh ^{-1}\left (\frac {\sqrt {b} \tanh (c+d x)}{\sqrt {a+b}}\right )}{8 a^3 \sqrt {b} d (a+b)^{3/2}}-\frac {\tanh (c+d x)}{4 a d \left (a-b \tanh ^2(c+d x)+b\right )^2} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 212
Rule 214
Rule 482
Rule 536
Rule 541
Rule 2000
Rule 4226
Rubi steps
\begin {align*} \int \frac {\tanh ^2(c+d x)}{\left (a+b \text {sech}^2(c+d x)\right )^3} \, dx &=\frac {\text {Subst}\left (\int \frac {x^2}{\left (1-x^2\right ) \left (a+b \left (1-x^2\right )\right )^3} \, dx,x,\tanh (c+d x)\right )}{d}\\ &=\frac {\text {Subst}\left (\int \frac {x^2}{\left (1-x^2\right ) \left (a+b-b x^2\right )^3} \, dx,x,\tanh (c+d x)\right )}{d}\\ &=-\frac {\tanh (c+d x)}{4 a d \left (a+b-b \tanh ^2(c+d x)\right )^2}+\frac {\text {Subst}\left (\int \frac {1+3 x^2}{\left (1-x^2\right ) \left (a+b-b x^2\right )^2} \, dx,x,\tanh (c+d x)\right )}{4 a d}\\ &=-\frac {\tanh (c+d x)}{4 a d \left (a+b-b \tanh ^2(c+d x)\right )^2}-\frac {(3 a+4 b) \tanh (c+d x)}{8 a^2 (a+b) d \left (a+b-b \tanh ^2(c+d x)\right )}-\frac {\text {Subst}\left (\int \frac {-5 a-4 b+(-3 a-4 b) x^2}{\left (1-x^2\right ) \left (a+b-b x^2\right )} \, dx,x,\tanh (c+d x)\right )}{8 a^2 (a+b) d}\\ &=-\frac {\tanh (c+d x)}{4 a d \left (a+b-b \tanh ^2(c+d x)\right )^2}-\frac {(3 a+4 b) \tanh (c+d x)}{8 a^2 (a+b) d \left (a+b-b \tanh ^2(c+d x)\right )}+\frac {\text {Subst}\left (\int \frac {1}{1-x^2} \, dx,x,\tanh (c+d x)\right )}{a^3 d}-\frac {\left (3 a^2+12 a b+8 b^2\right ) \text {Subst}\left (\int \frac {1}{a+b-b x^2} \, dx,x,\tanh (c+d x)\right )}{8 a^3 (a+b) d}\\ &=\frac {x}{a^3}-\frac {\left (3 a^2+12 a b+8 b^2\right ) \tanh ^{-1}\left (\frac {\sqrt {b} \tanh (c+d x)}{\sqrt {a+b}}\right )}{8 a^3 \sqrt {b} (a+b)^{3/2} d}-\frac {\tanh (c+d x)}{4 a d \left (a+b-b \tanh ^2(c+d x)\right )^2}-\frac {(3 a+4 b) \tanh (c+d x)}{8 a^2 (a+b) d \left (a+b-b \tanh ^2(c+d x)\right )}\\ \end {align*}
________________________________________________________________________________________
Mathematica [B] Leaf count is larger than twice the leaf count of optimal. \(1317\) vs. \(2(139)=278\).
time = 9.55, size = 1317, normalized size = 9.47 \begin {gather*} \frac {(a+2 b+a \cosh (2 (c+d x)))^3 \text {sech}^6(c+d x) \left (\frac {6 a (a+2 b) \tanh ^{-1}\left (\frac {\sqrt {b} \tanh (c+d x)}{\sqrt {a+b}}\right )}{(a+b)^{5/2}}-\frac {4 \left (3 a^2+8 a b+8 b^2\right ) \tanh ^{-1}\left (\frac {\sqrt {b} \tanh (c+d x)}{\sqrt {a+b}}\right )}{(a+b)^{5/2}}+\frac {4 a \sqrt {b} \left (3 a^2+16 a b+16 b^2+3 a (a+2 b) \cosh (2 (c+d x))\right ) \sinh (2 (c+d x))}{(a+b)^2 (a+2 b+a \cosh (2 (c+d x)))^2}-\frac {2 \sqrt {b} \left (3 a^3+14 a^2 b+24 a b^2+16 b^3+a \left (3 a^2+4 a b+4 b^2\right ) \cosh (2 (c+d x))\right ) \sinh (2 (c+d x))}{(a+b)^2 (a+2 b+a \cosh (2 (c+d x)))^2}+\frac {\sqrt {b} \left (-\frac {2 \left (3 a^5-10 a^4 b+80 a^3 b^2+480 a^2 b^3+640 a b^4+256 b^5\right ) \tanh ^{-1}\left (\frac {\text {sech}(d x) (\cosh (2 c)-\sinh (2 c)) ((a+2 b) \sinh (d x)-a \sinh (2 c+d x))}{2 \sqrt {a+b} \sqrt {b (\cosh (c)-\sinh (c))^4}}\right ) (\cosh (2 c)-\sinh (2 c))}{\sqrt {a+b} \sqrt {b (\cosh (c)-\sinh (c))^4}}+\frac {\text {sech}(2 c) \left (256 b^2 (a+b)^2 \left (3 a^2+8 a b+8 b^2\right ) d x \cosh (2 c)+512 a b^2 (a+b)^2 (a+2 b) d x \cosh (2 d x)+128 a^4 b^2 d x \cosh (2 (c+2 d x))+256 a^3 b^3 d x \cosh (2 (c+2 d x))+128 a^2 b^4 d x \cosh (2 (c+2 d x))+512 a^4 b^2 d x \cosh (4 c+2 d x)+2048 a^3 b^3 d x \cosh (4 c+2 d x)+2560 a^2 b^4 d x \cosh (4 c+2 d x)+1024 a b^5 d x \cosh (4 c+2 d x)+128 a^4 b^2 d x \cosh (6 c+4 d x)+256 a^3 b^3 d x \cosh (6 c+4 d x)+128 a^2 b^4 d x \cosh (6 c+4 d x)-9 a^6 \sinh (2 c)+12 a^5 b \sinh (2 c)+684 a^4 b^2 \sinh (2 c)+2880 a^3 b^3 \sinh (2 c)+5280 a^2 b^4 \sinh (2 c)+4608 a b^5 \sinh (2 c)+1536 b^6 \sinh (2 c)+9 a^6 \sinh (2 d x)-14 a^5 b \sinh (2 d x)-608 a^4 b^2 \sinh (2 d x)-2112 a^3 b^3 \sinh (2 d x)-2560 a^2 b^4 \sinh (2 d x)-1024 a b^5 \sinh (2 d x)+3 a^6 \sinh (2 (c+2 d x))-12 a^5 b \sinh (2 (c+2 d x))-204 a^4 b^2 \sinh (2 (c+2 d x))-384 a^3 b^3 \sinh (2 (c+2 d x))-192 a^2 b^4 \sinh (2 (c+2 d x))-3 a^6 \sinh (4 c+2 d x)+10 a^5 b \sinh (4 c+2 d x)+304 a^4 b^2 \sinh (4 c+2 d x)+1056 a^3 b^3 \sinh (4 c+2 d x)+1280 a^2 b^4 \sinh (4 c+2 d x)+512 a b^5 \sinh (4 c+2 d x)\right )}{(a+2 b+a \cosh (2 (c+d x)))^2}\right )}{a^3 (a+b)^2}+\frac {2 \sqrt {b} \left (\frac {6 a^2 \tanh ^{-1}\left (\frac {\text {sech}(d x) (\cosh (2 c)-\sinh (2 c)) ((a+2 b) \sinh (d x)-a \sinh (2 c+d x))}{2 \sqrt {a+b} \sqrt {b (\cosh (c)-\sinh (c))^4}}\right ) (\cosh (2 c)-\sinh (2 c))}{\sqrt {a+b} \sqrt {b (\cosh (c)-\sinh (c))^4}}+\frac {a \text {sech}(2 c) \left (\left (-9 a^4-16 a^3 b+48 a^2 b^2+128 a b^3+64 b^4\right ) \sinh (2 d x)+a \left (-3 a^3+2 a^2 b+24 a b^2+16 b^3\right ) \sinh (2 (c+2 d x))+\left (3 a^4-64 a^2 b^2-128 a b^3-64 b^4\right ) \sinh (4 c+2 d x)\right )+\left (9 a^5+18 a^4 b-64 a^3 b^2-256 a^2 b^3-320 a b^4-128 b^5\right ) \tanh (2 c)}{a^2 (a+2 b+a \cosh (2 (c+d x)))^2}\right )}{(a+b)^2}\right )}{4096 b^{5/2} d \left (a+b \text {sech}^2(c+d x)\right )^3} \end {gather*}
Warning: Unable to verify antiderivative.
[In]
[Out]
________________________________________________________________________________________
Maple [B] Leaf count of result is larger than twice the leaf count of optimal. \(334\) vs.
\(2(125)=250\).
time = 2.61, size = 335, normalized size = 2.41
method | result | size |
derivativedivides | \(\frac {\frac {\frac {2 \left (\left (-\frac {5}{8} a^{2}-\frac {1}{2} a b \right ) \left (\tanh ^{7}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )-\frac {a \left (15 a^{2}+15 a b -4 b^{2}\right ) \left (\tanh ^{5}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{8 \left (a +b \right )}-\frac {a \left (15 a^{2}+15 a b -4 b^{2}\right ) \left (\tanh ^{3}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{8 \left (a +b \right )}+\left (-\frac {5}{8} a^{2}-\frac {1}{2} a b \right ) \tanh \left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{\left (a \left (\tanh ^{4}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )+b \left (\tanh ^{4}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )+2 a \left (\tanh ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )-2 b \left (\tanh ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )+a +b \right )^{2}}+\frac {2 \left (3 a^{2}+12 a b +8 b^{2}\right ) \left (-\frac {\ln \left (\sqrt {a +b}\, \left (\tanh ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )+2 \tanh \left (\frac {d x}{2}+\frac {c}{2}\right ) \sqrt {b}+\sqrt {a +b}\right )}{4 \sqrt {b}\, \sqrt {a +b}}+\frac {\ln \left (\sqrt {a +b}\, \left (\tanh ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )-2 \tanh \left (\frac {d x}{2}+\frac {c}{2}\right ) \sqrt {b}+\sqrt {a +b}\right )}{4 \sqrt {b}\, \sqrt {a +b}}\right )}{8 a +8 b}}{a^{3}}-\frac {\ln \left (\tanh \left (\frac {d x}{2}+\frac {c}{2}\right )-1\right )}{a^{3}}+\frac {\ln \left (\tanh \left (\frac {d x}{2}+\frac {c}{2}\right )+1\right )}{a^{3}}}{d}\) | \(335\) |
default | \(\frac {\frac {\frac {2 \left (\left (-\frac {5}{8} a^{2}-\frac {1}{2} a b \right ) \left (\tanh ^{7}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )-\frac {a \left (15 a^{2}+15 a b -4 b^{2}\right ) \left (\tanh ^{5}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{8 \left (a +b \right )}-\frac {a \left (15 a^{2}+15 a b -4 b^{2}\right ) \left (\tanh ^{3}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{8 \left (a +b \right )}+\left (-\frac {5}{8} a^{2}-\frac {1}{2} a b \right ) \tanh \left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{\left (a \left (\tanh ^{4}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )+b \left (\tanh ^{4}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )+2 a \left (\tanh ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )-2 b \left (\tanh ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )+a +b \right )^{2}}+\frac {2 \left (3 a^{2}+12 a b +8 b^{2}\right ) \left (-\frac {\ln \left (\sqrt {a +b}\, \left (\tanh ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )+2 \tanh \left (\frac {d x}{2}+\frac {c}{2}\right ) \sqrt {b}+\sqrt {a +b}\right )}{4 \sqrt {b}\, \sqrt {a +b}}+\frac {\ln \left (\sqrt {a +b}\, \left (\tanh ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )-2 \tanh \left (\frac {d x}{2}+\frac {c}{2}\right ) \sqrt {b}+\sqrt {a +b}\right )}{4 \sqrt {b}\, \sqrt {a +b}}\right )}{8 a +8 b}}{a^{3}}-\frac {\ln \left (\tanh \left (\frac {d x}{2}+\frac {c}{2}\right )-1\right )}{a^{3}}+\frac {\ln \left (\tanh \left (\frac {d x}{2}+\frac {c}{2}\right )+1\right )}{a^{3}}}{d}\) | \(335\) |
risch | \(\frac {x}{a^{3}}+\frac {5 a^{3} {\mathrm e}^{6 d x +6 c}+20 a^{2} b \,{\mathrm e}^{6 d x +6 c}+16 a \,b^{2} {\mathrm e}^{6 d x +6 c}+15 a^{3} {\mathrm e}^{4 d x +4 c}+58 a^{2} b \,{\mathrm e}^{4 d x +4 c}+88 a \,b^{2} {\mathrm e}^{4 d x +4 c}+48 b^{3} {\mathrm e}^{4 d x +4 c}+15 a^{3} {\mathrm e}^{2 d x +2 c}+44 a^{2} b \,{\mathrm e}^{2 d x +2 c}+32 a \,b^{2} {\mathrm e}^{2 d x +2 c}+5 a^{3}+6 a^{2} b}{4 a^{3} d \left (a \,{\mathrm e}^{4 d x +4 c}+2 a \,{\mathrm e}^{2 d x +2 c}+4 b \,{\mathrm e}^{2 d x +2 c}+a \right )^{2} \left (a +b \right )}+\frac {3 \ln \left ({\mathrm e}^{2 d x +2 c}+\frac {a \sqrt {a b +b^{2}}+2 b \sqrt {a b +b^{2}}+2 a b +2 b^{2}}{a \sqrt {a b +b^{2}}}\right )}{16 \sqrt {a b +b^{2}}\, \left (a +b \right ) d a}+\frac {3 \ln \left ({\mathrm e}^{2 d x +2 c}+\frac {a \sqrt {a b +b^{2}}+2 b \sqrt {a b +b^{2}}+2 a b +2 b^{2}}{a \sqrt {a b +b^{2}}}\right ) b}{4 \sqrt {a b +b^{2}}\, \left (a +b \right ) d \,a^{2}}+\frac {\ln \left ({\mathrm e}^{2 d x +2 c}+\frac {a \sqrt {a b +b^{2}}+2 b \sqrt {a b +b^{2}}+2 a b +2 b^{2}}{a \sqrt {a b +b^{2}}}\right ) b^{2}}{2 \sqrt {a b +b^{2}}\, \left (a +b \right ) d \,a^{3}}-\frac {3 \ln \left ({\mathrm e}^{2 d x +2 c}+\frac {a \sqrt {a b +b^{2}}+2 b \sqrt {a b +b^{2}}-2 a b -2 b^{2}}{a \sqrt {a b +b^{2}}}\right )}{16 \sqrt {a b +b^{2}}\, \left (a +b \right ) d a}-\frac {3 \ln \left ({\mathrm e}^{2 d x +2 c}+\frac {a \sqrt {a b +b^{2}}+2 b \sqrt {a b +b^{2}}-2 a b -2 b^{2}}{a \sqrt {a b +b^{2}}}\right ) b}{4 \sqrt {a b +b^{2}}\, \left (a +b \right ) d \,a^{2}}-\frac {\ln \left ({\mathrm e}^{2 d x +2 c}+\frac {a \sqrt {a b +b^{2}}+2 b \sqrt {a b +b^{2}}-2 a b -2 b^{2}}{a \sqrt {a b +b^{2}}}\right ) b^{2}}{2 \sqrt {a b +b^{2}}\, \left (a +b \right ) d \,a^{3}}\) | \(699\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [B] Leaf count of result is larger than twice the leaf count of optimal. 1255 vs.
\(2 (131) = 262\).
time = 0.62, size = 1255, normalized size = 9.03 \begin {gather*} -\frac {{\left (3 \, a^{3} + 30 \, a^{2} b + 40 \, a b^{2} + 16 \, b^{3}\right )} \log \left (\frac {a e^{\left (2 \, d x + 2 \, c\right )} + a + 2 \, b - 2 \, \sqrt {{\left (a + b\right )} b}}{a e^{\left (2 \, d x + 2 \, c\right )} + a + 2 \, b + 2 \, \sqrt {{\left (a + b\right )} b}}\right )}{64 \, {\left (a^{5} + 2 \, a^{4} b + a^{3} b^{2}\right )} \sqrt {{\left (a + b\right )} b} d} + \frac {{\left (3 \, a^{3} + 30 \, a^{2} b + 40 \, a b^{2} + 16 \, b^{3}\right )} \log \left (\frac {a e^{\left (-2 \, d x - 2 \, c\right )} + a + 2 \, b - 2 \, \sqrt {{\left (a + b\right )} b}}{a e^{\left (-2 \, d x - 2 \, c\right )} + a + 2 \, b + 2 \, \sqrt {{\left (a + b\right )} b}}\right )}{64 \, {\left (a^{5} + 2 \, a^{4} b + a^{3} b^{2}\right )} \sqrt {{\left (a + b\right )} b} d} + \frac {5 \, a^{4} + 20 \, a^{3} b + 12 \, a^{2} b^{2} + {\left (5 \, a^{4} + 66 \, a^{3} b + 128 \, a^{2} b^{2} + 64 \, a b^{3}\right )} e^{\left (6 \, d x + 6 \, c\right )} + {\left (15 \, a^{4} + 164 \, a^{3} b + 460 \, a^{2} b^{2} + 512 \, a b^{3} + 192 \, b^{4}\right )} e^{\left (4 \, d x + 4 \, c\right )} + {\left (15 \, a^{4} + 118 \, a^{3} b + 208 \, a^{2} b^{2} + 96 \, a b^{3}\right )} e^{\left (2 \, d x + 2 \, c\right )}}{16 \, {\left (a^{7} + 2 \, a^{6} b + a^{5} b^{2} + {\left (a^{7} + 2 \, a^{6} b + a^{5} b^{2}\right )} e^{\left (8 \, d x + 8 \, c\right )} + 4 \, {\left (a^{7} + 4 \, a^{6} b + 5 \, a^{5} b^{2} + 2 \, a^{4} b^{3}\right )} e^{\left (6 \, d x + 6 \, c\right )} + 2 \, {\left (3 \, a^{7} + 14 \, a^{6} b + 27 \, a^{5} b^{2} + 24 \, a^{4} b^{3} + 8 \, a^{3} b^{4}\right )} e^{\left (4 \, d x + 4 \, c\right )} + 4 \, {\left (a^{7} + 4 \, a^{6} b + 5 \, a^{5} b^{2} + 2 \, a^{4} b^{3}\right )} e^{\left (2 \, d x + 2 \, c\right )}\right )} d} - \frac {5 \, a^{4} + 20 \, a^{3} b + 12 \, a^{2} b^{2} + {\left (15 \, a^{4} + 118 \, a^{3} b + 208 \, a^{2} b^{2} + 96 \, a b^{3}\right )} e^{\left (-2 \, d x - 2 \, c\right )} + {\left (15 \, a^{4} + 164 \, a^{3} b + 460 \, a^{2} b^{2} + 512 \, a b^{3} + 192 \, b^{4}\right )} e^{\left (-4 \, d x - 4 \, c\right )} + {\left (5 \, a^{4} + 66 \, a^{3} b + 128 \, a^{2} b^{2} + 64 \, a b^{3}\right )} e^{\left (-6 \, d x - 6 \, c\right )}}{16 \, {\left (a^{7} + 2 \, a^{6} b + a^{5} b^{2} + 4 \, {\left (a^{7} + 4 \, a^{6} b + 5 \, a^{5} b^{2} + 2 \, a^{4} b^{3}\right )} e^{\left (-2 \, d x - 2 \, c\right )} + 2 \, {\left (3 \, a^{7} + 14 \, a^{6} b + 27 \, a^{5} b^{2} + 24 \, a^{4} b^{3} + 8 \, a^{3} b^{4}\right )} e^{\left (-4 \, d x - 4 \, c\right )} + 4 \, {\left (a^{7} + 4 \, a^{6} b + 5 \, a^{5} b^{2} + 2 \, a^{4} b^{3}\right )} e^{\left (-6 \, d x - 6 \, c\right )} + {\left (a^{7} + 2 \, a^{6} b + a^{5} b^{2}\right )} e^{\left (-8 \, d x - 8 \, c\right )}\right )} d} - \frac {5 \, a^{3} + 2 \, a^{2} b + {\left (15 \, a^{3} + 32 \, a^{2} b + 8 \, a b^{2}\right )} e^{\left (-2 \, d x - 2 \, c\right )} + {\left (15 \, a^{3} + 46 \, a^{2} b + 56 \, a b^{2} + 16 \, b^{3}\right )} e^{\left (-4 \, d x - 4 \, c\right )} + {\left (5 \, a^{3} + 16 \, a^{2} b + 8 \, a b^{2}\right )} e^{\left (-6 \, d x - 6 \, c\right )}}{8 \, {\left (a^{6} + 2 \, a^{5} b + a^{4} b^{2} + 4 \, {\left (a^{6} + 4 \, a^{5} b + 5 \, a^{4} b^{2} + 2 \, a^{3} b^{3}\right )} e^{\left (-2 \, d x - 2 \, c\right )} + 2 \, {\left (3 \, a^{6} + 14 \, a^{5} b + 27 \, a^{4} b^{2} + 24 \, a^{3} b^{3} + 8 \, a^{2} b^{4}\right )} e^{\left (-4 \, d x - 4 \, c\right )} + 4 \, {\left (a^{6} + 4 \, a^{5} b + 5 \, a^{4} b^{2} + 2 \, a^{3} b^{3}\right )} e^{\left (-6 \, d x - 6 \, c\right )} + {\left (a^{6} + 2 \, a^{5} b + a^{4} b^{2}\right )} e^{\left (-8 \, d x - 8 \, c\right )}\right )} d} + \frac {3 \, \log \left (\frac {a e^{\left (-2 \, d x - 2 \, c\right )} + a + 2 \, b - 2 \, \sqrt {{\left (a + b\right )} b}}{a e^{\left (-2 \, d x - 2 \, c\right )} + a + 2 \, b + 2 \, \sqrt {{\left (a + b\right )} b}}\right )}{32 \, {\left (a^{2} + 2 \, a b + b^{2}\right )} \sqrt {{\left (a + b\right )} b} d} + \frac {\log \left (a e^{\left (4 \, d x + 4 \, c\right )} + 2 \, {\left (a + 2 \, b\right )} e^{\left (2 \, d x + 2 \, c\right )} + a\right )}{4 \, a^{3} d} - \frac {\log \left (2 \, {\left (a + 2 \, b\right )} e^{\left (-2 \, d x - 2 \, c\right )} + a e^{\left (-4 \, d x - 4 \, c\right )} + a\right )}{4 \, a^{3} d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] Leaf count of result is larger than twice the leaf count of optimal. 3459 vs.
\(2 (131) = 262\).
time = 0.45, size = 7158, normalized size = 51.50 \begin {gather*} \text {Too large to display} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {\tanh ^{2}{\left (c + d x \right )}}{\left (a + b \operatorname {sech}^{2}{\left (c + d x \right )}\right )^{3}}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [B] Leaf count of result is larger than twice the leaf count of optimal. 296 vs.
\(2 (131) = 262\).
time = 1.84, size = 296, normalized size = 2.13 \begin {gather*} -\frac {\frac {{\left (3 \, a^{2} + 12 \, a b + 8 \, b^{2}\right )} \arctan \left (\frac {a e^{\left (2 \, d x + 2 \, c\right )} + a + 2 \, b}{2 \, \sqrt {-a b - b^{2}}}\right )}{{\left (a^{4} + a^{3} b\right )} \sqrt {-a b - b^{2}}} - \frac {2 \, {\left (5 \, a^{3} e^{\left (6 \, d x + 6 \, c\right )} + 20 \, a^{2} b e^{\left (6 \, d x + 6 \, c\right )} + 16 \, a b^{2} e^{\left (6 \, d x + 6 \, c\right )} + 15 \, a^{3} e^{\left (4 \, d x + 4 \, c\right )} + 58 \, a^{2} b e^{\left (4 \, d x + 4 \, c\right )} + 88 \, a b^{2} e^{\left (4 \, d x + 4 \, c\right )} + 48 \, b^{3} e^{\left (4 \, d x + 4 \, c\right )} + 15 \, a^{3} e^{\left (2 \, d x + 2 \, c\right )} + 44 \, a^{2} b e^{\left (2 \, d x + 2 \, c\right )} + 32 \, a b^{2} e^{\left (2 \, d x + 2 \, c\right )} + 5 \, a^{3} + 6 \, a^{2} b\right )}}{{\left (a^{4} + a^{3} b\right )} {\left (a e^{\left (4 \, d x + 4 \, c\right )} + 2 \, a e^{\left (2 \, d x + 2 \, c\right )} + 4 \, b e^{\left (2 \, d x + 2 \, c\right )} + a\right )}^{2}} - \frac {8 \, {\left (d x + c\right )}}{a^{3}}}{8 \, d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.01 \begin {gather*} \int \frac {{\mathrm {cosh}\left (c+d\,x\right )}^4\,\left ({\mathrm {cosh}\left (c+d\,x\right )}^2-1\right )}{{\left (a\,{\mathrm {cosh}\left (c+d\,x\right )}^2+b\right )}^3} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________